
#import "PaintingWindow.h"

@implementation PaintingWindow

- (void)motionBegan:(UIEventSubtype)motion 
          withEvent:(UIEvent *)event {

  NSLog(@"--->UIWindow::motionBegan");

}

- (void)motionEnded:(UIEventSubtype)motion 
          withEvent:(UIEvent *)event
{
   if (motion == UIEventSubtypeMotionShake )
   {
      // User was shaking the device. Post a notification named "shake".
      [[NSNotificationCenter defaultCenter] postNotificationName:@"shake" object:self];
   }
}

- (void)motionCancelled:(UIEventSubtype)motion 
              withEvent:(UIEvent *)event
{   
}

@end
